<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
	</head>
	<body>
		<h3>jsonp接口测试</h3>
	 <button id="btn" onclick="BtnJsonp()">模拟jsonp请求</button>
	</body>
    <script>
	        		function BtnJsonp(){

	        			$.ajax({
      		              type: "get",
      		              async:true,
      		              url: "https://api.asilu.com/geo/",
      		              //url:'http://localhost:8080/swj_salary/userInfo/jsonp.do',
      		              dataType: "jsonp",
      		              jsonpCallback:"jsonpCallback",
      		              success: function(data){

      		              var str = JSON.stringify(data);
      		              console.log(str);
      		              alert(str);
      		              },
      		              error: function (e) {
      		                  alert("error");
      		              }
      		          });
	        		}

</script>
</html>
